package com.ruicar.afs.cloud.batch.dayend.mq;

import com.ruicar.afs.cloud.common.modules.dto.mq.loan.contractdto.LoanActivateReceiveNoticeDTO;
import com.ruicar.afs.cloud.common.mq.rabbit.anno.send.AfsRabbitMqClient;
import com.ruicar.afs.cloud.common.mq.rabbit.anno.send.AfsRabbitMqSender;
import com.ruicar.afs.cloud.common.mq.rabbit.message.AfsTransEntity;

/**
 * @author: Lee
 * @date: 2020/5/11 19:39
 * @description: mq发送
 */
@AfsRabbitMqClient
public interface BasicSender {
    /**
     * 将合同激活异常信息推送到案件
     * @param entity
     */
    @AfsRabbitMqSender(serverAlias = "${com.ruicar.afs.cloud.rabbitQueue.serverAlia}"
            ,exchangeName = "${com.ruicar.afs.cloud.rabbitQueue.exchangeName}"
            ,queueName = "${com.ruicar.afs.cloud.rabbitQueue.queueName.contractBasicToCaseCtm}")
    void sendContractBasicToCtmCase(AfsTransEntity<LoanActivateReceiveNoticeDTO> entity );
}
